package com.gem.demo.mapper;

import com.gem.demo.entity.Product;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface ProductMapper {
    @Select("select * from product where ptype=#{ptype}")
    List<Product>selectByType(int ptype);

    //查询所有
    @Select("select * from product")
    List<Product>selectAll();
}
